package io;

import java.io.FileWriter;
import java.io.IOException;

public class TestWriter {
    public static void main(String[] args) {
        try(FileWriter fileWriter = new FileWriter("d:/test.txt")) {
            fileWriter.write("fileWriter 的 write 方法");
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
